package com.tengju.data.infrastructure.persistence.mybatis.mapper.data.custom;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DwsBonusTopMonthMapper {


    Map<String,Object> getSelfMonthRank(@Param("idCode") Long idCode,
                                        @Param("month") Integer month,
                                        @Param("lastMonth") Integer lastMonth,
                                        @Param("topLimit") Integer topLimit);


    List<Map<String, Object>> getAllMonthRank(@Param("month") Integer month,
                                              @Param("topLimit") Integer topLimit,
                                              @Param("offset") Integer offset,
                                              @Param("limit") Integer limit);

    List<Map<String,Object>> getByIdCodeAndMonth(@Param("idCodeList") List<Long> idCodeList,
                                                 @Param("month") Integer month,
                                                 @Param("topLimit") Integer topLimit);

    Integer getTotal(@Param("month") Integer month,
                     @Param("topLimit") Integer topLimit);
}
